/*
 * @Description:
 * @Version: 2.0
 * @Autor: wiz
 * @Date: 2023-10-09 11:33:44
 * @LastEditors: zss
 * @LastEditTime: 2025-02-27 20:57:03
 */
import { T_srv, Tsrv, ifs, ts, tvs, vue } from '@/services';
import { I_cmd, T_cmd } from './command';
import { N_flowMonitor } from './type';

const wasteWaterData = (): N_flowMonitor.wasteWaterInfo[] => {
  return [
    {
      id: 1,
      instantaneousFlow: { label: '瞬时流量', value: 5.5, code: 'my182' },
      instantaneousVelocity: { label: '瞬时流速', value: 0, code: 'my183' },
      flowPercentage: { label: '流量百分比', value: 1, code: 'my184' },
      forwardTotalInt: { label: '正向累计整数', value: 1, code: 'my186' },
      forwardTotalDecimal: { label: '正向累计小数', value: 2, code: 'my187' },
      reverseTotalInt: { label: '反向累计整数', value: 3, code: 'my188' },
      reverseTotalDecimal: { label: '反向累计小数', value: 4, code: 'my189' },
      flowConductanceRatio: { label: '流量导通比', value: 1, code: 'my185' },
      online: true,
      prevFlow: 5.5
    },
    {
      id: 2,
      instantaneousFlow: { label: '瞬时流量', value: 5.5, code: 'my192' },
      instantaneousVelocity: { label: '瞬时流速', value: 0, code: 'my193' },
      flowPercentage: { label: '流量百分比', value: 1, code: 'my194' },
      forwardTotalInt: { label: '正向累计整数', value: 1, code: 'my196' },
      forwardTotalDecimal: { label: '正向累计小数', value: 2, code: 'my197' },
      reverseTotalInt: { label: '反向累计整数', value: 3, code: 'my198' },
      reverseTotalDecimal: { label: '反向累计小数', value: 4, code: 'my199' },
      flowConductanceRatio: { label: '流量导通比', value: 1, code: 'my195' },
      online: true,
      prevFlow: 5.3
    }
  ];
};

const otherFlowData = (): N_flowMonitor.otherFlowInfo => {
  return {
    compressedAir: {
      label: '压缩空气总流量',
      code: 'my103',
      value: 0
    },
    pureWater: {
      label: '纯水总流量',
      code: 'my190',
      value: 0
    },
    steam: {
      label: '蒸汽流量',
      code: 'my102',
      value: 0
    },
    tapWater: {
      label: '自来水流量',
      code: 'my191',
      value: 0
    }
  };
};

export {
  I_cmd,
  N_flowMonitor,
  T_cmd,
  T_srv,
  Tsrv,
  ifs,
  otherFlowData,
  ts,
  tvs,
  vue,
  wasteWaterData
};
